package com.yzx.lifeassistants.model.callback;

import java.util.List;

import com.yzx.lifeassistants.bean.MyBook;

/**
 * @Description: 登录图书馆
 * @author: yzx
 * @time: 2016-3-9 下午8:26:20
 */
public interface ILoginLibraryCB {
	/**
	 * @Description: 返回我的借阅结果为空
	 */
	public static final int RESULR_NULL = 0;
	/**
	 * @Description: 登录成功
	 */
	public static final int LOGIN_SUCCESS = 1;
	/**
	 * @Description: 登录失败
	 */
	public static final int LOGIN_FAILED = 2;
	/**
	 * @Description: 登录异常
	 */
	public static final int LOGIN_ERROR = 3;

	/**
	 * 
	 * @Description: 登录成功回调
	 */
	void loginSuccess(List<MyBook> myBookList, int code);

	/**
	 * 
	 * @Description: 登录失败回调
	 */
	void loginError(int code);
}
